<?php

class Groups
{
	private $groups = array();
	
	public function __construct()
	{
		$database=$GLOBALS['DATABASE']->Recopy();
		$sql = "SELECT GroupID, GroupName FROM MusicAdmin_GroupNames ORDER BY GroupID";
//		echo $sql."<br>/n";
		$database->executeSQL($sql);
		while($row=$database->getRow())
		{
			$this->groups[$row['GroupID']]=$row['GroupName'];
		}
	}
	
	public function getGroups(){return $this->groups;}
	
}
